<h3 xmlns="http://www.w3.org/1999/html">Lista porudzbina</h3>
<button class="btn btn-success" ng-click="izmeniPorudzbinu('novi')" data-toggle="modal" href="#editModal">
    <i class="icon-calendar icon-white"></i>&nbsp;Kreiraj novu porudžbinu</button>
<table class='table table-striped'>
    <thead>
    <tr>
        <th>Porudžbina</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
    </tr>
    </thead>
    <tbody>
    <tr style="height: 45px;"><td><b>ID</b></td><td><b>Datum</b></td><td><b>Razduženo</b></td><td><b>Napravljena</b></td><td><b>Konobar</b></td><td><b>Sto</b></td><td><b>Razduženje</b></td><td><b></b></td></tr>
    <tr ng-repeat='porudzbina in porudzbine | orderBy:order'>
        <td>{{porudzbina.porudzbinaID}}</td>
        <td>{{porudzbina.datumPorudzbine}}</td>
        <td>{{porudzbina.razduzeno}}</td>
        <td>{{porudzbina.napravljena}}</td>
        <td>{{porudzbina.ime}} {{porudzbina.prezime}}</td>
        <td>{{porudzbina.stoID}}</td>
        <td>{{porudzbina.razduzenjeID}}</td>
        <td><button role='button' class='btn btn-warning' ng-click="izmeniPorudzbinu(porudzbina);" data-toggle="modal" href="#editModal">Izmeni</button></td>
    </tr>
    </tbody>
</table>
<div class="modal fade"  tabindex="-1" role="dialog" ng-include="'view/porudzbina-detalji.html'" id="editModal" aria-hidden="true"></div>
</div>